package com.dahua.messagesyncsh.business.mitsubishi.util;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;
import com.dahua.messagesyncsh.business.mitsubishi.http.ApiServiceResponse;

/**
 * @author HJJ
 * @date 2022/10/11/16:42
 * Desc:
 */
public class HttpResultUtil<T> {

    public ApiServiceResponse<T> getResponseObj(String resultStr) {
        return JSON.parseObject(resultStr, new TypeReference<ApiServiceResponse<T>>() {
        });
    }
}
